import request from '@utils/request'
// import qs from 'qs'
// 获取分类
const getCates = (params = {}) => request.get('/shop/goods/category/all', { params })
// 获取首页banner
const getHomeBanners = () => request.get('/banner/list')
// 获取首页推荐商品
const getRecommends = () => request.post('/shop/goods/list', {
  categoryId: 72399
})
// 获取商品详情
const getItemDetail = (id) => request.get('/shop/goods/detail?id=' + id)
// 获取商品列表
const getItemLists = (params = {}) => request.post('/shop/goods/list', params)
export {
  getCates,
  getHomeBanners,
  getRecommends,
  getItemDetail,
  getItemLists
}
